# $Header: /pub/cvsroot/mydns/src/util/Makefile.am,v 1.2 2002/07/19 04:51:42 bboy Exp $

noinst_PROGRAMS	=	dumpzone
EXTRA_DIST			=	README

localedir			=	$(datadir)/locale

INCLUDES				=	-I../lib -I../../lib -I../../intl $(MYSQL_INCLUDE)
DEFS					=	-DLOCALEDIR=\"$(localedir)\"
AM_LDFLAGS			=	-static
LDADD					=	../../lib/libmydnsutil.a ../lib/libmydns.a @LIBINTL@ @LIBMYSQLCLIENT@ @LIBZ@

dumpzone_SOURCES	=	dumpzone.c util.c util.h

DEPENDENCIES 		= ../../lib/libmydnsutil.a ../lib/libmydns.a

ctags:
	ctags *.[ch] ../lib/*.[ch] ../../lib/*.[ch]

install:
	for f in $(noinst_PROGRAMS); do if test -x $$f; then \
	  ln -s -f ../src/util/$$f $(top_srcdir)/extras/$$f; fi; done

clean:
	rm -rf .libs _libs
	rm -f *.o *.lo core *.core *~ $(noinst_PROGRAMS)
	for f in $(noinst_PROGRAMS); do rm -f $(top_srcdir)/extras/$$f; done

## vi:set ts=3:
